<template>
  <div class="app" id="bank">
    <merchantHeader />
    <div class="back">
      <div class="con">
        <div class="pxes"></div>
        <div class="listneo">
          <businessL />
          <div class="conres">
            <div class="ra">
              <h3>银行卡管理</h3>
              <div style="margin-top: 10px;">
                <el-button
                  size="small"
                  @click="$router.push('/bussSetPassword')"
                  type="danger"
                >支付密码设置</el-button>
                <el-button @click="$router.push('/bussChangedPassword')" size="small" type="info">支付密码修改</el-button>
              </div>
            </div>
            <div class="yuansdj">
              <div class="yuansdj_box">
                <div>
                  <div>{{bank}}</div>
                  <div>{{numbers}}</div>
                  <div>
                    <span>{{types}}</span>
                    <span>删除</span>
                  </div>
                </div>
              </div>
              <div class="yuansdj_box_l">
                <div style="overflow: hidden;">
                  <div @click="dialogVisible = true" class="yuansdj_btn">+新增银行卡</div>
                  <p style="text-align: center;">添加银行卡后将自动绑定银行账户信息</p>
                </div>
              </div>
            </div>
            <businessF />
          </div>
        </div>
      </div>
    </div>
    <Footer />
    <el-dialog :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
      <div class="lheds">新增银行卡</div>
      <div class="lbody">
        <el-form label-width="100px">
          <el-form-item label="户名:">
            <el-input size="small" style="width:300px" v-model="names"></el-input>
          </el-form-item>
          <el-form-item label="卡号:">
            <el-input size="small" style="width:300px" v-model="card"></el-input>
          </el-form-item>
          <el-form-item label="银行:">
            <el-input size="small" style="width:300px" v-model="banks"></el-input>
          </el-form-item>
          <el-form-item label="手机号:">
            <el-input size="small" style="width:300px" v-model="phones"></el-input>
          </el-form-item>
          <el-form-item label="验证码:">
            <el-col :span="13">
              <el-input size="small" v-model="code"></el-input>
            </el-col>
            <el-col :span="10">
              <el-button size="small">发送验证码</el-button>
            </el-col>
          </el-form-item>
        </el-form>
      </div>
      <el-button
        size="small"
        style="margin: 0 auto;display: block;"
        type="danger"
        @click="dialogVisible = false"
      >提交</el-button>
      <div style="height:15px"></div>
    </el-dialog>
  </div>
</template>
<script>
import merchantHeader from "@/components/merchantHeader";
import Footer from "@/components/Footer";
import businessL from "@/components/businessL";
import businessF from "@/components/businessF";
export default {
  components: {
    merchantHeader,
    Footer,
    businessL,
    businessF
  },
  data() {
    return {
      bank: "中国工商银行",
      numbers: "6226 **** **** 5648",
      types: "储值卡",
      dialogVisible: false,
      names: "",
      card: "",
      banks: "",
      phones: "",
      code: ""
    };
  },
  methods: {
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then(_ => {
          done();
        })
        .catch(_ => {});
    }
  }
};
</script>
<style lang="stylus">
.app /deep/ .ist_l .ist_c li:nth-child(1) {
  background-color: #ff9381;
  width: 126px;
  height: 50px;
  display: block;
}

#bank {
  .back {
    background-color: #f06048;
  }

  .pxes {
    height: 15px;
  }

  .back .con {
    width: 1200px;
    margin: 0 auto;
    background-color: #eee;
    padding-bottom: 10px;
  }

  .listneo {
    width: 1161px;
    margin: 0px auto;
    display: flex;
    justify-content: space-between;
  }

  .conres {
    width: 902px;
    border-radius: 6px;
    background-color: #fff;
  }

  .conres .ra {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #cecece;
  }

  .conres .ra h3 {
    font-size: 20px;
    color: #f06048;
    padding-left: 14px;
    margin-top: 15px;
    padding-bottom: 10px;
  }

  .yuansdj {
    margin-left: 15px;
    display: flex;
    flex-wrap: wrap;
  }

  .yuansdj_box {
    width: 290px;
    height: 160px;
    background-color: rgb(244, 213, 166);
    border-radius: 20px;
    margin: 20px 20px;
  }

  .yuansdj_box>div {
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 90%;
    margin: 0 auto;
  }

  .yuansdj_box>div div:nth-child(1) {
    font-size: 17px;
  }

  .yuansdj_box>div div:nth-child(2) {
    text-align: center;
  }

  .yuansdj_box>div div:nth-child(3) {
    display: flex;
    justify-content: space-between;
  }

  .yuansdj_box span:nth-child(2) {
    color: blue;
  }

  .yuansdj_box_l {
    width: 290px;
    height: 160px;
    background-color: rgb(229, 229, 229);
    border-radius: 20px;
    margin: 20px 0px;
  }

  .yuansdj_box_l>div {
    width: 90%;
    margin: 0 auto;
  }

  .yuansdj_btn {
    border: solid 1px black;
    width: 100px;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto;
    padding: 5px 0px;
    margin-top: 65px;
  }

  .el-dialog__header {
    padding: 0px !important;
  }

  .el-dialog__body {
    padding: 0px !important;
  }

  .lheds {
    width: 100%;
    height: 60px;
    background-color: rgb(240, 96, 72);
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
  }

  .lbody {
    width: 80%;
    margin: 15px auto;
  }

  .el-form-item {
    margin-bottom: 10px;
  }
}
</style>